<?php
$root = realpath($_SERVER["DOCUMENT_ROOT"]) . "/SmartTuition/SmartTuition.Model"; 
// including base class, EntityWithID
require_once("$root/Models/Base/EntityWithID.php");

class Schedule extends EntityWithID
{
    private $day;
    private $doubleLessonId;
    private $subjectId;
    private $teacherId;
    private $auditoryId;
    private $groupId;

    function __construct($id, $day ,$doubleLesson_id, $subject_id, $teacher_id, $auditory_id, $group_id) {
        parent::__construct($id);
        $this->day = $day;
        $this->doubleLessonId = $doubleLesson_id;
        $this->subjectId = $subject_id;
        $this->teacherId = $teacher_id;
        $this->auditoryId = $auditory_id;
        $this->groupId = $group_id;
        $this->columns = "Day, DoubleLessonID, SubjectID, TeacherID, AuditoryID, GroupID";
    }

    public function getDay() {
        return $this->day;
    }

    public function getDoubleLessonId() {
        return $this->doubleLessonId;
    }

    public function getSubjectId() {
        return $this->subjectId;
    }

    public function getTeacherId() {
        return $this->teacherId;
    }

    public function getAuditoryId() {
        return $this->auditoryId;
    }

    public function getGroupId() {
        return $this->groupId;
    }

    public function getValues() {
        $str = "'" . $this->day .  ',' . $this->doubleLessonId .  ',' . $this->subjectId .  ',' . $this->teacherId .  ',' . $this->auditoryId .  ',' . $this->groupId;
        return $str;
    }
}
